#include "Stack.h"

int Stack::isEmpty()
{
	return m_stack->isEmpty();
}

void Stack::MakeEmpty()
{
	m_stack->makeEmpty();
}

void Stack::Push(ItemType item)
{
	m_stack->insertFirst(item);
}

ItemType Stack::Pop()
{
	ItemType l_itm_to_pop; 
	m_stack->first(l_itm_to_pop);
	m_stack->deleteFirst();
	return l_itm_to_pop;
}

ItemType Stack::Top()
{
	ItemType l_top_item;
	m_stack->first(l_top_item);
	return l_top_item;
}

void Stack::reverse()
{
	m_stack->reverse();
}
